<?php

namespace app\admin\validate;

class Module extends ValidateCore
{
    //验证规则
    protected $rule =   [
		'id' => [ 'require'],
		'name' => [ 'require'],
		'title' => [ 'require'],
		'use' => [ 'require'],
		'version' => [ 'require'],
		
    ];
    
    //提示信息
    protected $message  =   [
		'id.require' => 'ID必填',
		'name.require' => '标识必填',
		'title.require' => '名称必填',
		'use.require' => '包名必填',
		'version.require' => '版本必填',
    ];
    
    //验证场景
    protected $scene = [
		'add' => [
			'id',
			'name',
			'title',
			'use',
			'version',
		],
		'edit' => [
			'id',
			'name',
			'title',
			'use',
			'version',
		] 
    ];
}